package com.google.code

object Attribute {
  def apply(name: String, value: String) = new Attribute(name, value)
}

class Attribute(val name: String, val value: String) {
  def changeName(newName: String) = Attribute(newName, value)
  def changeValue(newValue: String) = Attribute(name, newValue)

  override def toString: String = s"$name=" +"\"" + s"$value" + "\""

}
